const getCurrentModule = require('./pathUtil');
const currentModule = getCurrentModule();
module.exports = (file, module = currentModule) => {
  if (currentModule === module) {
    return require('../pages' + file + '/index.vue').default;
  } else {
    return require('modules/ctci-' + module + '/pages' + file + '/index.vue').default;
  }
};
